#!/bin/bash
#

n=1
while read line; do
    id=$(echo $line | awk -F: '{print $3}')
    if [ $id -ge 1 -a $id -le 999 ]; then
	name=$(echo $line | awk -F: '{print $1}')
	echo $name
	let n++
        if [ $n -eq 4 ]; then
            break
        fi
    fi
done < /etc/passwd
